var gulp = require("gulp");
var htmlmin = require("gulp-htmlmin");
gulp.task("html", (cb) => {
  var options = {
    collapseWhitespace: true,

    collapseBooleanAttributes: true,

    removeComments: true,

    removeEmptyAttributes: true,

    removeScriptTypeAttributes: true,

    removeStyleLinkTypeAttributes: true,

    minifyJS: true,

    minifyCSS: true
  };
  gulp.src("index.html").pipe(htmlmin(options)).pipe(gulp.dest("dist/"));
  cb();
});
